#include <hxcpp.h>

#ifndef INCLUDED_Sys
#include <Sys.h>
#endif
#ifndef INCLUDED_haxe_io_Input
#include <haxe/io/Input.h>
#endif
#ifndef INCLUDED_jax_io_JCloseable
#include <jax/io/JCloseable.h>
#endif
#ifndef INCLUDED_jax_io_JConsole
#include <jax/io/JConsole.h>
#endif
#ifndef INCLUDED_jax_io_JReader
#include <jax/io/JReader.h>
#endif
#ifndef INCLUDED_jax_io__JConsole_JConsoleReader
#include <jax/io/_JConsole/JConsoleReader.h>
#endif
#ifndef INCLUDED_jax_lang_JAutoClosable
#include <jax/lang/JAutoClosable.h>
#endif
namespace jax{
namespace io{

Void JConsole_obj::__construct()
{
{
}
;
	return null();
}

JConsole_obj::~JConsole_obj() { }

Dynamic JConsole_obj::__CreateEmpty() { return  new JConsole_obj; }
hx::ObjectPtr< JConsole_obj > JConsole_obj::__new()
{  hx::ObjectPtr< JConsole_obj > result = new JConsole_obj();
	result->__construct();
	return result;}

Dynamic JConsole_obj::__Create(hx::DynamicArray inArgs)
{  hx::ObjectPtr< JConsole_obj > result = new JConsole_obj();
	result->__construct();
	return result;}

Void JConsole_obj::flush( ){
{
		HX_SOURCE_PUSH("JConsole_obj::flush")
	}
return null();
}


HX_DEFINE_DYNAMIC_FUNC0(JConsole_obj,flush,(void))

::String JConsole_obj::readLine( ::String f){
	HX_SOURCE_PUSH("JConsole_obj::readLine")
	HX_SOURCE_POS("Source/jax/io/JConsole.hx",12)
	return ::Sys_obj::_stdin()->readLine();
}


HX_DEFINE_DYNAMIC_FUNC1(JConsole_obj,readLine,return )

::jax::io::_JConsole::JConsoleReader JConsole_obj::reader( ){
	HX_SOURCE_PUSH("JConsole_obj::reader")
	HX_SOURCE_POS("Source/jax/io/JConsole.hx",21)
	return ::jax::io::_JConsole::JConsoleReader_obj::__new();
}


HX_DEFINE_DYNAMIC_FUNC0(JConsole_obj,reader,return )


JConsole_obj::JConsole_obj()
{
}

void JConsole_obj::__Mark(HX_MARK_PARAMS)
{
	HX_MARK_BEGIN_CLASS(JConsole);
	HX_MARK_END_CLASS();
}

void JConsole_obj::__Visit(HX_VISIT_PARAMS)
{
}

Dynamic JConsole_obj::__Field(const ::String &inName,bool inCallProp)
{
	switch(inName.length) {
	case 5:
		if (HX_FIELD_EQ(inName,"flush") ) { return flush_dyn(); }
		break;
	case 6:
		if (HX_FIELD_EQ(inName,"reader") ) { return reader_dyn(); }
		break;
	case 8:
		if (HX_FIELD_EQ(inName,"readLine") ) { return readLine_dyn(); }
	}
	return super::__Field(inName,inCallProp);
}

Dynamic JConsole_obj::__SetField(const ::String &inName,const Dynamic &inValue,bool inCallProp)
{
	return super::__SetField(inName,inValue,inCallProp);
}

void JConsole_obj::__GetFields(Array< ::String> &outFields)
{
	super::__GetFields(outFields);
};

static ::String sStaticFields[] = {
	String(null()) };

static ::String sMemberFields[] = {
	HX_CSTRING("flush"),
	HX_CSTRING("readLine"),
	HX_CSTRING("reader"),
	String(null()) };

static void sMarkStatics(HX_MARK_PARAMS) {
};

static void sVisitStatics(HX_VISIT_PARAMS) {
	HX_VISIT_MEMBER_NAME(JConsole_obj::__mClass,"__mClass");
};

Class JConsole_obj::__mClass;

void JConsole_obj::__register()
{
	Static(__mClass) = hx::RegisterClass(HX_CSTRING("jax.io.JConsole"), hx::TCanCast< JConsole_obj> ,sStaticFields,sMemberFields,
	&__CreateEmpty, &__Create,
	&super::__SGetClass(), 0, sMarkStatics, sVisitStatics);
}

void JConsole_obj::__boot()
{
}

} // end namespace jax
} // end namespace io
